#include<iostream>
using namespace std;
int main(){
int no,date[8],messno,p=0;
char meal[10],lnstr[40];
while(p!=2){cout<<"messaccount no of student which has guest entered"<<endl;
cin>>messno;
FILE*fp
fp=messroll

/give the opening file name by messroll in write format
/idont know how to use

cout<<"date of today (dd-mm-yy)"<<endl;
gets(date);

//cheakgets is working or not

cout<<"no of guest" <<endl;
cin>>no;
cout<<"yype of meal"<<endl;
gets(meal);
for(i=0;i<10;i++){lnstr[i]=date[i];}
lnstr[15]=no;
for(i=20;i<31;i++){lnstr[i]=meal[i-20];}
fgets(linestr, 40, fp);
cout<<"Doyou want to enter  more data if yes then press 1 and 2 if not"<<endl;
cin>>p;}
return 0;
}


